ValidatedByte

constructor(minValue: Byte, maxValue: Byte, widgetType: ValidatedNumber.WidgetType = WidgetType.SLIDER)

A validated byte number with a default selected from the min of the allowable range.

Author

fzzyhmstrs

Since

0.2.0

Parameters

minValue

Byte. the minimum allowed value, inclusive

maxValue

Byte. the maximum allowed value, inclusive

widgetType

WidgetType defines what the config GUI widget looks like


constructor(defaultValue: Byte)

an unbounded validated byte number.

The validation will be limited to ensuring the value de/serializes as a byte, since there are no bounds.

The widget type is locked to WidgetType.TEXTBOX

Author

fzzyhmstrs

Since

0.2.0

Parameters

defaultValue

Byte. the default value of this wrapper


constructor()

an unbounded validated byte number with a default of 0b

The validation will be limited to ensuring the value de/serializes as a byte, since there are no bounds.

The widget type is locked to WidgetType.TEXTBOX

Author

fzzyhmstrs

Since

0.2.0


constructor(defaultValue: Byte, maxValue: Byte, minValue: Byte, widgetType: ValidatedNumber.WidgetType = if(maxValue == Byte.MAX_VALUE || minValue == Byte.MIN_VALUE) WidgetType.TEXTBOX else WidgetType.SLIDER)

Parameters

defaultValue

Byte. the default value of this wrapper

maxValue

Byte. the maximum allowed value, inclusive

minValue

Byte. the minimum allowed value, inclusive